Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 5 - Bitmap Shapes / Bitmap Shapes Reference
Constants and Data Types


The Long Rectangle Structure

The gxLongRectangle structure allows you to specify a rectangular subsection of the pixel image of a bitmap shape. It differs from the gxRectangle structure, described in the chapter "Geometric Shapes" in this book, in that the coordinates of a gxLongRectangle structure have no fractional part.

struct gxLongRectangle {
   long     left;
   long     top;
   long     right;
   long     bottom;
};
Field Description
left
The left side of the rectangle in number of pixels.
top
The top of the rectangle in number of pixels.
right
The right side of the rectangle in number of pixels.
bottom
The bottom of the rectangle in number of pixels.
You use the gxLongRectangle structure when editing parts of a bitmap, as discussed in "Editing Part of a Bitmap" beginning on page 5-53.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help